/* 容器样式 */
.video-editing-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px 40px;
  position: relative;
}

/* 顶部导航按钮样式 */
.top-nav-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 1000;
}

.nav-btn {
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 600;
  color: white;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.return-btn {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(255, 142, 142, 0.8));
  border-color: rgba(255, 107, 107, 0.5);
  font-size: 15px;
}

.results-btn {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
  border-color: rgba(102, 126, 234, 0.5);
  font-size: 15px;
}

.nav-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
}

.return-btn:hover {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.9), rgba(255, 142, 142, 0.9));
  box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.results-btn:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.9), rgba(118, 75, 162, 0.9));
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.nav-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* 顶部介绍区域 */
.header-section {
  height: 12vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 20px;
}

.main-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.subtitle {
  font-size: 1.3rem;
  opacity: 0.9;
  margin-bottom: 25px;
  line-height: 1.5;
}

.feature-highlights {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.highlight-tag {
  background: rgba(255, 255, 255, 0.2);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

/* 功能按钮区域 */
.function-buttons-section {
  min-height: 15vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  padding: 30px 0;
}

.buttons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1100px;
  width: 100%;
}

.function-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 40px 25px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(10px);
  min-height: 180px;
}

.function-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-5px);
}

.function-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.btn-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.btn-title {
  display: block;
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.btn-desc {
  font-size: 1rem;
  opacity: 0.8;
  line-height: 1.4;
}

/* 功能区域 */
.function-area {
  min-height: 65vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20px;
}

.function-panel {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 25px;
  padding: 50px;
  width: 100%;
  max-width: 850px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin: 0 auto;
}

.panel-title {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-align: center;
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.input-group label {
  font-weight: bold;
  font-size: 1.1rem;
}

.input-group input,
.input-group textarea,
.input-group select {
  padding: 15px;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(5px);
}

.input-group select {
  background: rgba(30, 30, 60, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  cursor: pointer;
}

.input-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
  background: rgba(40, 40, 80, 0.9);
}

.input-group select option {
  background: rgba(30, 30, 60, 0.95);
  color: white;
  padding: 10px;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.upload-area {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.upload-box {
  text-align: center;
  padding: 40px;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  width: 100%;
  transition: all 0.3s ease;
}

.upload-box:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.upload-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.upload-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.upload-tip {
  margin-top: 10px;
  opacity: 0.8;
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 30px;
}

.primary-btn {
  background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
  border: none;
  padding: 15px 40px;
  border-radius: 25px;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 15px 30px;
  border-radius: 25px;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.radio-group {
  display: flex;
  gap: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.slider {
  width: 100%;
  margin: 10px 0;
}

.color-picker {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}

.video-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.video-number {
  background: rgba(255, 255, 255, 0.2);
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* 转场类型选择器样式 */
.transition-type-selector {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.slide-direction-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.direction-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.direction-option:hover {
  background: rgba(255, 255, 255, 0.2);
}

.direction-option input[type="radio"] {
  margin: 0;
}

.fade-options, .slide-options {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 15px;
  margin: 15px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.fade-options .input-group,
.slide-options .input-group {
  margin-bottom: 15px;
}

.fade-options .input-group:last-child,
.slide-options .input-group:last-child {
  margin-bottom: 0;
}

/* 进度条覆盖层 */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.processing-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  backdrop-filter: blur(10px);
}

.spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-bar {
  width: 200px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin: 10px auto;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff6b6b, #ff8e8e);
  transition: width 0.3s ease;
}

/* 结果查看区域 */
.results-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.results-section h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 28px;
}

.no-files {
  text-align: center;
  color: #7f8c8d;
  padding: 40px;
}

.no-files .hint {
  font-size: 14px;
  color: #95a5a6;
  margin-top: 10px;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.file-item:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.file-info h3 {
  margin: 0 0 5px 0;
  color: #2c3e50;
  font-size: 18px;
}

.file-info p {
  margin: 2px 0;
  color: #7f8c8d;
  font-size: 14px;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.btn-preview, .btn-download, .btn-refresh {
  padding: 8px 16px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.btn-preview {
  background: #3498db;
  color: white;
}

.btn-download {
  background: #2ecc71;
  color: white;
}

.btn-refresh {
  background: #f39c12;
  color: white;
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  font-size: 16px;
}

.btn-preview:hover, .btn-download:hover, .btn-refresh:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .buttons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .main-title {
    font-size: 2rem;
  }
  
  .function-panel {
    padding: 20px;
    margin: 0 10px;
  }
}

@media (max-width: 480px) {
  .buttons-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}